package com.entmanage.base.oa.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.entmanage.common.annotation.Excel;
import com.entmanage.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 补卡申请对象 oa_reissue_apply
 *
 * @author lsq
 * @date 2025-09-19
 */
@ApiModel(value = "OaReissueApply", description = "补卡申请对象")
public class OaReissueApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private Long applyId;

    /** 申请人ID */
    @Excel(name = "申请人ID")
    @ApiModelProperty(value = "申请人ID")
    private Long userId;

    /** 申请人部门ID */
    @Excel(name = "申请人部门ID")
    @ApiModelProperty(value = "申请人部门ID")
    private Long deptId;

    /** 申请提交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "申请提交日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "申请提交日期")
    private Date applyDate;

    /** 补卡时间列表，格式：ISO日期时间，多个用逗号分隔，如 2025-09-18 09:00,2025-09-19 18:30 */
    @Excel(name = "补卡时间列表，格式：ISO日期时间，多个用逗号分隔，如 2025-09-18 09:00,2025-09-19 18:30")
    @ApiModelProperty(value = "补卡时间列表，格式：ISO日期时间，多个用逗号分隔，如 2025-09-18 09:00,2025-09-19 18:30")
    private String reissueTimes;

    /** 补卡事由列表，多个用逗号分隔，需与时间一一对应 */
    @Excel(name = "补卡事由列表，多个用逗号分隔，需与时间一一对应")
    @ApiModelProperty(value = "补卡事由列表，多个用逗号分隔，需与时间一一对应")
    private String reissueReasons;

    /** 审批人ID列表，多个用逗号分隔，如 101,102,103 */
    @Excel(name = "审批人ID列表，多个用逗号分隔，如 101,102,103")
    @ApiModelProperty(value = "审批人ID列表，多个用逗号分隔，如 101,102,103")
    private String approverIds;

    /** 审批人姓名，如：张三,李四 */
    @Excel(name = "审批人姓名，如：张三,李四")
    @ApiModelProperty(value = "审批人姓名，如：张三,李四")
    private String approverNames;

    /** 抄送人ID列表，多个用逗号分隔 */
    @Excel(name = "抄送人ID列表，多个用逗号分隔")
    @ApiModelProperty(value = "抄送人ID列表，多个用逗号分隔")
    private String ccIds;

    /** 抄送人姓名 */
    @Excel(name = "抄送人姓名")
    @ApiModelProperty(value = "抄送人姓名")
    private String ccNames;

    /** 状态：PENDING, APPROVED, REJECTED */
    @Excel(name = "状态：PENDING, APPROVED, REJECTED")
    @ApiModelProperty(value = "状态：PENDING, APPROVED, REJECTED")
    private String status;

    /** 附件URL（可多个，用逗号分隔） */
    @Excel(name = "附件URL", readConverterExp = "可=多个，用逗号分隔")
    @ApiModelProperty(value = "附件URL（可多个，用逗号分隔）")
    private String attachmentUrl;

    /** 删除标记：0-正常，1-删除 */
    @ApiModelProperty(value = "删除标记：0-正常，1-删除")
    private String delFlag;

    public void setApplyId(Long applyId)
    {
        this.applyId = applyId;
    }

    public Long getApplyId()
    {
        return applyId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setApplyDate(Date applyDate)
    {
        this.applyDate = applyDate;
    }

    public Date getApplyDate()
    {
        return applyDate;
    }
    public void setReissueTimes(String reissueTimes)
    {
        this.reissueTimes = reissueTimes;
    }

    public String getReissueTimes()
    {
        return reissueTimes;
    }
    public void setReissueReasons(String reissueReasons)
    {
        this.reissueReasons = reissueReasons;
    }

    public String getReissueReasons()
    {
        return reissueReasons;
    }
    public void setApproverIds(String approverIds)
    {
        this.approverIds = approverIds;
    }

    public String getApproverIds()
    {
        return approverIds;
    }
    public void setApproverNames(String approverNames)
    {
        this.approverNames = approverNames;
    }

    public String getApproverNames()
    {
        return approverNames;
    }
    public void setCcIds(String ccIds)
    {
        this.ccIds = ccIds;
    }

    public String getCcIds()
    {
        return ccIds;
    }
    public void setCcNames(String ccNames)
    {
        this.ccNames = ccNames;
    }

    public String getCcNames()
    {
        return ccNames;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setAttachmentUrl(String attachmentUrl)
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl()
    {
        return attachmentUrl;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("applyId", getApplyId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("applyDate", getApplyDate())
            .append("reissueTimes", getReissueTimes())
            .append("reissueReasons", getReissueReasons())
            .append("approverIds", getApproverIds())
            .append("approverNames", getApproverNames())
            .append("ccIds", getCcIds())
            .append("ccNames", getCcNames())
            .append("status", getStatus())
            .append("attachmentUrl", getAttachmentUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
